﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Net;

namespace Krist_em_up.Network
{
    class Network
    {
        public Network()
        {
            //NetworkSession session;
            //session = NetworkSession.Create(NetworkSessionType.SystemLink, 1, 2);
            //session.GamerJoined +=
            //    new EventHandler<GamerJoinedEventArgs>(session_GamerJoined);
            //session.GamerLeft +=
            //    new EventHandler<GamerLeftEventArgs>(session_GamerLeft);
            //session.GameStarted +=
            //    new EventHandler<GameStartedEventArgs>(session_GameStarted);
            //session.GameEnded +=
            //    new EventHandler<GameEndedEventArgs>(session_GameEnded);
            //session.SessionEnded +=
            //    new EventHandler<NetworkSessionEndedEventArgs>(
            //        session_SessionEnded);
        }

        public void Find()
        {
            AvailableNetworkSessionCollection availableSessions;
            availableSessions = NetworkSession.Find(
                NetworkSessionType.SystemLink, 1, new NetworkSessionProperties());
        }

        void session_GamerJoined(object sender, GamerJoinedEventArgs e)
        {
            // Associate a tank object with this gamer.
            //e.Gamer.

        }
    }
}
